package model;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

public class MovieSection {

    private String id;
    private String movieName;
    private int price;
    private Date startTime;
    private int duration;
    private String houseId;

    public MovieSection() {
    }

    public MovieSection(String movieName, int price, Date startTime,
            int duration, String houseId) {
        super();
        this.movieName = movieName;
        this.price = price;
        this.startTime = startTime;
        this.duration = duration;
        this.houseId = houseId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMovieName() {
        return movieName;
    }

    public void setMovieName(String movieName) {
        this.movieName = movieName;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public Date getStartTime() {
        return startTime;
    }

    public String getStartTimeString() {
        DateFormat standardFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm");
        return standardFormat.format(startTime);
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public String getHouseId() {
        return houseId;
    }

    public void setHouseId(String houseId) {
        this.houseId = houseId;
    }
}
